package com.juyu.miliao.scheduler.dao.mysql;

import com.juyu.miliao.scheduler.domin.Grade;
import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
public class GradeDao {
	@Resource
	private SqlSession sqlSession;

	public List<Grade> getGrade(int type){
		return sqlSession.selectList("getGrade", type);
	}
	
}
